/**
 * @description 获取元素尺寸
 * @returns bottom: Number,
            dataset: {ref: ""},
            height: Number,
            id: String,
            left: Number,
            right: Number,
            top: Number,
            width: Number ,
 */
export const GetRect = (selector, app) => {
	return new Promise((resolve) => {
		uni.createSelectorQuery()
			.in(app)['select'](selector)
			.boundingClientRect((rect) => {
				resolve(rect)
			})
			.exec()
	})
}
